//
//  WYAgreementController.m
//  Boss
//
//  Created by admin on 2018/7/20.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "WYAgreementController.h"

@interface WYAgreementController ()
@property (nonatomic,strong)UIWebView *webView;
@end

@implementation WYAgreementController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.hidden = NO;
    self.navigationItem.title = @"《巨牛BOSS用户注册协议》";
    
    
    self.webView = [[UIWebView alloc]init];
    self.webView.frame = CGRectMake(0, self.navHeight, kScreenWidth, kScreenHeight-self.navHeight);
    [self.view addSubview:self.webView];
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://u.juniuboss.com/contract.html"]]];
    
    
//    NSString *filePath = [[NSBundle mainBundle] pathForResource:@"contractff" ofType:@"html"];
//    NSString *htmlString = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil];
//    NSURL *url = [[NSURL alloc] initWithString:filePath];
//    [self.webView loadHTMLString:htmlString baseURL:url];
    
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
